﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PaceR.Core.Interfaces.Conditionals;
using PaceR.Core.Interfaces;

namespace PaceR.Core.Validation
{
    public class SimpleValidationMessageOperation : IConditionalFunction<Tuple<string, ConstraintOperators>, IResultMessages>
    {
        public Func<Tuple<string, ConstraintOperators>, IResultMessages> Function { get; set; }
        public Tuple<string, ConstraintOperators> FunctionArgument { get; set; }
        public IResultMessages FunctionResult { get; set; }

        public IResultMessages Execute()
        {
            return Function(FunctionArgument);
        }
    }
}
